package ijen.fbconnect;

/**
 * Description of ResponseObserver.
 * Basic interface for FBRequest callbacks
 * ---------------------------------------------------------------------------------------
 * User: fred
 * Date: 22 juil. 2009
 * Time: 08:59:09
 * ---------------------------------------------------------------------------------------
 */
public interface FBResponseObserver {

    /**
     * <p>This method is called, if we can consider that API call was a success.
     * @param response HTTP response as String.
     */
    void success(final String response);


    /**
     * <p>This method is called, if we can consider that API call was a failure.
     * @param response HTTP response as String.
     */
    void failure(final String response);


    /**
     * <p>This method is called, if API call had errors (exceptions).
     * @param response HTTP response as String.
     */
    void error(final String response);
    
}
